//
//  BoutiqueDetailPageView.m
//  NewNest
//
//  Created by hesiyao on 16/1/18.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "BoutiqueDetailPageView.h"

@implementation BoutiqueDetailPageView

- (void)dealloc
{
    [_imgview release];
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imgview = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width / 3 * 2, self.frame.size.width / 3 * 2)];
        _imgview.center = CGPointMake(self.frame.size.width / 2, self.frame.size.height / 3);
        [self addSubview:_imgview];
        [_imgview release];
        
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, self.frame.size.width, self.frame.size.width, self.frame.size.height - self.frame.size.width)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.font = [UIFont systemFontOfSize:15];
        _titleLabel.textColor = [UIColor grayColor];
//        _titleLabel.backgroundColor = [UIColor yellowColor];
        [self addSubview:_titleLabel];
        [_titleLabel release];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
